<?php

namespace apiend\modules\dynamic\controllers;

use Yii;
use apiend\components\Controller;

/**
 * 动态评论列表相关功能
 * Default controller for the `dynamic` module
 */
class CommentController extends Controller {

    public $modelClass = 'api\modules\dynamic\models\DynamicCommentSearch';

    /**
     * @inheritdoc
     */
    public function actionIndex($id) {
        /* @var $modelClass \api\modules\dynamic\models\DynamicCommentSearch */
        $modelClass = new $this->modelClass;
        return $modelClass->search($id);
    }

}
